package com.example.demo.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

/**
 * @author: Bin.L
 * @date: 2021/7/29 0029 14:48
 * @Description:
 */

@Getter
@Setter
@ToString
public class EsPolicyPO {

    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "发布日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDate issueDate;

    @ApiModelProperty(value = "来源类型（0：采集 1：录入）")
    private Integer sourceType;

    private File file;


    @Getter
    @Setter
    @ToString
    @AllArgsConstructor
    public static class File {

        @ApiModelProperty(value = "文件名称")
        private String fileName;

        @ApiModelProperty(value = "扩展名")
        private String fileExt;
    }

}

